package com.game.battleship.data;

import com.game.battleship.data.ai.AiFactory;
import com.game.battleship.data.ai.AiPlayer;

/**
 * @author vtkhanh
 *
 */
public class GameAi extends Game {
	
	public static final short DIFF_EASSY = 0;

	private AiPlayer mBot;
	
	public GameAi(Ship[] playerShips, Ship[] opponentShips) {
		super(playerShips, opponentShips);		
		
		mBot = AiFactory.getInstance().produceAiPlayer(DIFF_EASSY, this);
	}
	
	public int generateShotForAi() {
		int position = mBot.generateShot();		
		
		return position;
	}

}
